//
//  PaperAnswerOptionModel.m
//  ZYOnlineSchool
//
//  Created by 毕武侠 on 2017/3/8.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import "PaperAnswerOptionModel.h"
#import "YYTextLayout+Text.h"

@implementation PaperAnswerOptionModel

- (instancetype)initWithPaperModel:(PaperOptionModel *)paperModel {
    self = [super init];
    
    self.type = PaperOptionTypeNormal;
    self.layout = [YYTextLayout layoutWithTexts:paperModel.content];
    self.title = paperModel.answer;
    
    return self;
}
@end
